package com.example.service.impl;

import com.example.bean.User;
import com.example.mapper.LoginMapper;
import com.example.service.LoginCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginCheckServiceImpl implements LoginCheckService {

    @Autowired
    LoginMapper loginMapper;

    @Override
    public int loginCheck(User user) {
        return loginMapper.loginCheck(user.getUsername(), user.getPassword());
    }
}
